//1.确认电脑的主机字节序
#include<stdio.h>
union engine
{
	int a;
	char c;
};
int main()
{
	union engine type;
	type.a = 0x01000002;
	if(type.c == 0x01)
	{
		printf("%x\n",type.c);
		puts("大端");
	}
	else
	{
		printf("%x\n",type.c);
		puts("小端");
	}
	return 0;
}
